package com.eureka.eurekaserviceinvoker.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;


//调用服务器提供方，fallback类为HelloClientFallBack
@FeignClient(name = "eureka-service-provider",fallback = HelloClientFallBack.class)
public interface HelloClient {

    @GetMapping("/provider/hello")
    public String hello();


    @GetMapping("/provider/hello2")
    public String hello2();



}
